package com.spring.boot.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/10/29 22:45
 * @Description
 */
@Component
// 加载我们自定义的属性，属性可以根据自己的需要添加
@ConfigurationProperties(prefix = "custom.starter")
public class CustomProperties {

    private boolean enabled;

    private String desc;

    private String version;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
